package itdfq.ydd.Structural_Patterns.xiangyuan;

/**
 * @Author GocChin
 * @Date 2021/4/20 18:52
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class WhiteWeiqi implements Weiqi{
    private String color;
    public  WhiteWeiqi(String color){
        this.color=color;
    }
    @Override
    public String getColor() {
        return this.color;
    }

    @Override
    public void who(int qiID, int renID) {
        System.out.println("第"+qiID+"围棋是"+color+"属于第"+renID+"所有");
    }
}
